
<div ng-controller="DecorationCtrl">
	
<div ng-include="'/templates/paramsSelect.html'"></div>
	<div class="page-heading">
		<ul class="breadcrumb">
			<li><a href="javascript:;">报表管理</a></li>
			<li >衍生业务</li>
			<li class="active" ng-hide="menuName">装潢单销售统计</li>
			<li class="active" ng-show="menuName" ng-bind="menuName"></li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right btn-flag " ng-show="flag" ng-click="delFlag('/decoration/decoration/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right btn-flag " ng-click="addFlag('#/decoration/decoration/')"><i class="fa fa-star"></i> 收藏 </span>
		
			
		</ul>
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">


		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						装潢单销售统计信息
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()"
								style="margin-left: 5px;">
								<i class="fa fa-search"></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()"
								style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:;" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_group_name"  name="entity_group_name"  ng-keyup="clearGroup()" class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name"  name="entity_brand_name" ng-keyup="clearGroupBrand()" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">店面信息</label>
									<div class="col-lg-8 col-sm-7">
											<input type="text" id="entity_name" name="entity_name"  class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys" val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul>  
									</div>
								</div>
							</div>
							
						    <!-- 装潢单号 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">装潢单号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="decoration_no_str" class="form-control form_params" />
									</div>
								</div>
							</div>
							
							<!-- 装潢业务类型 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-7 control-label long_title"
										for="inputEmail1">装潢业<br>务类型</label>
									<div class="col-lg-8 col-sm-5">
										<select name="dec_type" class="form-control form_params">
											<option></option>
											<option ng-selected="b.status_code==selected.dec_type" ng-repeat="b in decTypeDescs" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
								<!-- 装潢状态 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-7 control-label"
										for="inputEmail1">装潢单状态</label>
									<div class="col-lg-8 col-sm-5">
										<select name="so_status" class="form-control form_params">
											<option></option>
											<option ng-selected="b.status_code==selected.so_status" ng-repeat="b in soStatusDescs" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
							<!-- 结案日期 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">结案日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="close_time_str1" class="form-control form_params" id="close_time_str1"
												onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'close_time_str2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label  text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="close_time_str2" class="form-control form_params" id="close_time_str2"
												onFocus="WdatePicker({minDate:'#F{$dp.$D(\'close_time_str1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<!-- 开单人 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">开单人</label>
									<div class="col-lg-8 col-sm-7">
										<input name="sheet_create_by_name" class="form-control form_params" />
									</div>
								</div>
							</div>

							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">接单人</label>
									<div class="col-lg-8 col-sm-7">
										<input name="owned_by_name" class="form-control form_params" />
									</div>
								</div>
							</div>

							<!-- VIN -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">VIN</label>
									<div class="col-lg-8 col-sm-7">
										<input name="vin" class="form-control form_params" />
									</div>
								</div>
							</div>
							
							<!-- 客户名称 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">客户名称</label>
									<div class="col-lg-8 col-sm-7">
										<input name="customer_name" class="form-control form_params" />
									</div>
								</div>
							</div>
							
							<!-- 开单日期 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">开单日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="sheet_create_date_str1" class="form-control form_params" id="sheet_create_date_str1"
												onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'sheet_create_date_str2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="sheet_create_date_str2" class="form-control form_params" id="sheet_create_date_str2"
												onFocus="WdatePicker({minDate:'#F{$dp.$D(\'sheet_create_date_str1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>

							<!-- 结清日期 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">结清日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
                                            	<input type="text" name="square_date1" class="form-control form_params" id="square_date1"
												onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'square_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
<input type="text" name="square_date2" class="form-control form_params" id="square_date2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'square_date1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>

							<!-- 完工日期 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">完工日期</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
<input type="text" name="completed_date_str1" class="form-control form_params" id="completed_date_str1" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'completed_date_str2\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											<input type="text" name="completed_date_str2" class="form-control form_params" id="completed_date_str2"
												onFocus="WdatePicker({minDate:'#F{$dp.$D(\'completed_date_str1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							<!-- 车牌号 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">车牌号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="license" class="form-control form_params" />
									</div>
								</div>
							</div>
							
							<!-- 客户代码 -->
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">客户代码</label>
									<div class="col-lg-8 col-sm-7">
										<input name="customer_no" class="form-control form_params" />
									</div>
								</div>
							</div>
							
							

							
                            
                            
						</div>
					</div>
				</section>

				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						装潢单信息列表
						<headshow></headshow>
						<div class="option_check_list" style="display: inline-block;"></div>

						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起--> <a
							href="javascript:;" class="fa fa-chevron-down"></a>
						</span>
						<div class="pull-right"
							style="margin-right: 10px; margin-top: -6px; display: inline-block">
							<button type="button" class="btn btn-danger btn-sm " href="#paramsSelect"
								data-toggle="modal">
								<i class="fa fa-plus"></i> 在结果集中筛选
							</button>
							<button type="button" class="btn btn-success btn-sm"
								id="search_table" ng-click="SearchData();">
								<i class="fa fa-search"></i> 查询表格
							</button>
						</div>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal ">

						<div class="adv-table" style="overflow-x: scroll">
							<table id="cotyTable"
								class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
								cellspacing="0" width="100%">
								<thead>
									<tr>
					                	<td colspan="{{showinfo.count1}}" ng-show="showinfo.count1>0"></td>
					                	<td colspan="{{showinfo.count2}}" ng-show="showinfo.count2>0">装潢项目</td>
					                	<td colspan="{{showinfo.count3}}" ng-show="showinfo.count3>0">中心装潢</td>
					                	<td colspan="{{showinfo.count4}}" ng-show="showinfo.count4>0">装潢用品</td>
										<td colspan="{{showinfo.count5}}" ng-show="showinfo.count5>0">装潢配件</td>
										<td colspan="{{showinfo.count6}}" ng-show="showinfo.count6>0">总金额</td>
										<td colspan="{{showinfo.count7}}" ng-show="showinfo.count7>0">毛利</td>
										<td colspan="{{showinfo.count8}}" ng-show="showinfo.count8>0">毛利率</td>
				                	</tr>
									<tr id="dis_col">
										<th col_index='1'  ng-show="!cols.contains('index_id')"  column="index_id">序号</th>
										<th col_index='1'  ng-show="!cols.contains('option')" column="option">明细</th>
										<th col_index='1'  ng-show="!cols.contains('entity_code')" column="entity_code">店面编号</th>
										<th col_index='1'  ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
										<th col_index='1'  ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">店面品牌</th>
										<th col_index='1'  ng-show="!cols.contains('entity_group_name')" column="entity_group_name">事业部</th>
										<th col_index='1'  ng-show="!cols.contains('decoration_no_str')" column="decoration_no_str">装潢单号</th>
										<th col_index='1'  ng-show="!cols.contains('dec_type_desc')" column="dec_type_desc">装潢业务类型</th>
										<th col_index='1'  ng-show="!cols.contains('so_status_desc')" column="so_status_desc">装潢单状态</th>
										<th col_index='1'  ng-show="!cols.contains('license')" column="license">车牌号</th>
										<th col_index='1'  ng-show="!cols.contains('vin')" column="vin">VIN</th>
										<th col_index='1'  ng-show="!cols.contains('series_name')" column="series_name">车系</th>
										<th col_index='1'  ng-show="!cols.contains('customer_no')" column="customer_no">客户代码</th>
										<th col_index='1'  ng-show="!cols.contains('customer_name')" column="customer_name">客户名称</th>
										<th col_index='1'   qtype='date' ng-show="!cols.contains('sheet_create_date_str')" column="sheet_create_date_str">开单日期</th>
										<th col_index='1'  ng-show="!cols.contains('sheet_create_by_name')" column="sheet_create_by_name">开单人</th>
										<th col_index='1'  ng-show="!cols.contains('owned_by_name')" column="owned_by_name">接单人</th>
										<th col_index='1'  ng-show="!cols.contains('auditedbyname')" column="auditedbyname">审核人</th>
										<th col_index='1'  ng-show="!cols.contains('close_by_name')" column="close_by_name">结案人</th>
										<th col_index='1'  qtype='date'  ng-show="!cols.contains('close_time_str')" column="close_time_str">结案日期</th>
										<th col_index='1'  qtype='date'  ng-show="!cols.contains('completed_date_str')" column="completed_date_str">完工日期</th>
										<th col_index='1'  qtype='date'   ng-show="!cols.contains('square_date')" column="square_date">结清日期</th>
										<th  qtype='float' col_index='2'  ng-show="!cols.contains('owner_dec_amount')" column="owner_dec_amount">装潢项目自付金额</th>
										<th  qtype='float' col_index='2' ng-show="!cols.contains('total_dec_amount')" column="total_dec_amount">装潢项目合计金额</th>
										<th  qtype='float' col_index='3'  ng-show="!cols.contains('sold_owner_dec_amount')" column="sold_owner_dec_amount">自付金额</th>
										<th  qtype='float' col_index='3'  ng-show="!cols.contains('sold_total_dec_amount')" column="sold_total_dec_amount">合计金额</th>
										<th  qtype='float' col_index='3'  ng-show="!cols.contains('declabouramount')" column="declabouramount">工时费</th>
										<th  qtype='float' col_index='3'  ng-show="!cols.contains('decownerlabouramount')" column="decownerlabouramount">自付结算金额（含税）</th>
										<th  qtype='float' col_index='3' ng-show="!cols.contains('dectotallabouramount')" column="dectotallabouramount">合计结算金额（含税）</th>
										<th  qtype='float' col_index='4' ng-show="!cols.contains('part_owner_dec_amount')" column="part_owner_dec_amount">装潢用品自付金额</th>
										<th  qtype='float' col_index='4' ng-show="!cols.contains('part_total_dec_amount')" column="part_total_dec_amount">装潢用品合计金额</th>
										<th  qtype='float' col_index='4' ng-show="!cols.contains('decpartcostamount')" column="decpartcostamount">装潢用品自付成本</th>
										<th  qtype='float' col_index='4'  ng-show="!cols.contains('decpartcostamountsum')" column="decpartcostamountsum">装潢用品合计成本</th>
										<th  qtype='float' col_index='5' ng-show="!cols.contains('part_owner_part_amount')" column="part_owner_part_amount">装潢配件自付金额</th>
										<th  qtype='float' col_index='5' ng-show="!cols.contains('part_total_part_amount')" column="part_total_part_amount">装潢配件合计金额</th>
										<th  qtype='float' col_index='5' ng-show="!cols.contains('sopartcostamount')" column="sopartcostamount">装潢配件自付成本</th>
										<th  qtype='float' col_index='5' ng-show="!cols.contains('sopartcostamountsum')" column="sopartcostamountsum">装潢配件合计成本</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('receiveable_amount')" column="receiveable_amount">自付总金额</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('realreceiveamount1')" column="realreceiveamount1">自付实际金额</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('realreceivenotaxamount')" column="realreceivenotaxamount">自付实际金额（不含税）</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('derated_amount')" column="derated_amount">减免金额</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('total_amount')" column="total_amount">总计金额</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('costamount')" column="costamount">自付成本合计（不含税）</th>
										<th  qtype='float' col_index='6' ng-show="!cols.contains('costamountsum')" column="costamountsum">成本合计（不含税）</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('decpartownerprofit')" column="decpartownerprofit">装潢用品自付毛利</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('decparttotalprofit')" column="decparttotalprofit">装潢用品毛利</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('sopartownerprofit')" column="sopartownerprofit">装潢配件自付毛利</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('soparttotalprofit')" column="soparttotalprofit">装潢配件毛利</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('solddecownerprofit')" column="solddecownerprofit">中心装潢自付毛利</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('solddectotalprofit')" column="solddectotalprofit">中心装潢毛利</th>
										<th  qtype='float' col_index='7' ng-show="!cols.contains('totalprofit')" column="totalprofit">总毛利</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('decpartownerprofitper')" column="decpartownerprofitper">装潢用品自付毛利率</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('decparttotalprofitper')" column="decparttotalprofitper">装潢用品毛利率</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('sopartownerprofitper')" column="sopartownerprofitper">装潢配件自付毛利率</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('soparttotalprofitper')" column="soparttotalprofitper">装潢配件毛利率</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('solddecownerprofitper')" column="solddecownerprofitper">中心装潢自付毛利率</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('solddectotalprofitper')" column="solddectotalprofitper">中心装潢毛利率</th>
										<th  qtype='float' col_index='8' ng-show="!cols.contains('totalprofitper')" column="totalprofitper">总毛利率</th>
									</tr>
								</thead>
								
								<tbody>
									<tr ng-repeat="c in decorations" ng-dblclick="showDetail(c.entity_code,c.decoration_no_str);">
										<td  ng-show="!cols.contains('index_id')" class="">{{$index + 1 }}</td>
										<td ng-show="!cols.contains('option')" column="option"><a  href="javascript:" ng-click="showDetail(c.entity_code,c.decoration_no_str);" >明细</a></td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code">{{c.entity_code}}</td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name">{{c.entity_name}}</td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">{{c.entity_brand_name}}</td>
										<td ng-show="!cols.contains('entity_group_name')" column="entity_group_name">{{c.entity_group_name}}</td>
										<td  ng-show="!cols.contains('decoration_no_str')" class="">{{c.decoration_no_str}}</td>
										<td  ng-show="!cols.contains('dec_type_desc')" class="">{{c.dec_type_desc}}</td>
										<td  ng-show="!cols.contains('so_status_desc')" class="">{{c.so_status_desc}}</td>
										<td  ng-show="!cols.contains('license')" class="">{{c.license}}</td>
										<td  ng-show="!cols.contains('vin')" class="">{{c.vin}}</td>
										<td  ng-show="!cols.contains('series_name')" class="">{{c.series_name}}</td>
										<td  ng-show="!cols.contains('customer_no')" class="">{{c.customer_no}}</td>
										<td  ng-show="!cols.contains('customer_name')" class="">{{c.customer_name}}</td>
										<td  ng-show="!cols.contains('sheet_create_date_str')" class="">{{c.sheet_create_date_str}}</td>
										<td  ng-show="!cols.contains('sheet_create_by_name')" class="">{{c.sheet_create_by_name}}</td>
										<td  ng-show="!cols.contains('owned_by_name')" class="">{{c.owned_by_name}}</td>
										<td  ng-show="!cols.contains('auditedbyname')" class="">{{c.auditedbyname}}</td>
										<td  ng-show="!cols.contains('close_by_name')" class="">{{c.close_by_name}}</td>
										<td  ng-show="!cols.contains('close_time_str')" class="">{{c.close_time_str | date:'yyyy-MM-dd'}}</td>
										<td  ng-show="!cols.contains('completed_date_str')" class="">{{c.completed_date_str | date:'yyyy-MM-dd' }}</td>
										<td  ng-show="!cols.contains('square_date')" class="">{{c.square_date | date:'yyyy-MM-dd'}}</td>
										<td  ng-show="!cols.contains('owner_dec_amount')" class="right">{{c.owner_dec_amount |number:2}}</td>
										<td  ng-show="!cols.contains('total_dec_amount')" class="right">{{c.total_dec_amount |number:2}}</td>
										<td  ng-show="!cols.contains('sold_owner_dec_amount')" class="right">{{c.sold_owner_dec_amount |number:2}}</td>
										<td  ng-show="!cols.contains('sold_total_dec_amount')" class="right">{{c.sold_total_dec_amount |number:2}}</td>
										<td  ng-show="!cols.contains('declabouramount')" class="right">{{c.declabouramount |number:2}}</td>
										<td  ng-show="!cols.contains('decownerlabouramount')" class="right">{{c.decownerlabouramount |number:2}}</td>
										<td  ng-show="!cols.contains('dectotallabouramount')" class="right">{{c.dectotallabouramount |number:2}}</td>
										<td  ng-show="!cols.contains('part_owner_dec_amount')" class="right">{{c.part_owner_dec_amount |number:2}}</td>
										<td  ng-show="!cols.contains('part_total_dec_amount')" class="right">{{c.part_total_dec_amount |number:2}}</td>
										<td  ng-show="!cols.contains('decpartcostamount')" class="right">{{c.decpartcostamount |number:2}}</td>
										<td  ng-show="!cols.contains('decpartcostamountsum')" class="right">{{c.decpartcostamountsum |number:2}}</td>
										<td  ng-show="!cols.contains('part_owner_part_amount')" class="right">{{c.part_owner_part_amount |number:2}}</td>
										<td  ng-show="!cols.contains('part_total_part_amount')" class="right">{{c.part_total_part_amount |number:2}}</td>
										<td  ng-show="!cols.contains('sopartcostamount')" class="right">{{c.sopartcostamount |number:2}}</td>
										<td  ng-show="!cols.contains('sopartcostamountsum')" class="right">{{c.sopartcostamountsum |number:2}}</td>
										<td  ng-show="!cols.contains('receiveable_amount')" class="right">{{c.receiveable_amount |number:2}}</td>
										<td  ng-show="!cols.contains('realreceiveamount1')" class="right">{{c.realreceiveamount1 |number:2}}</td>
										<td  ng-show="!cols.contains('realreceivenotaxamount')" class="right">{{c.realreceivenotaxamount |number:2}}</td>
										<td  ng-show="!cols.contains('derated_amount')" class="right">{{c.derated_amount |number:2}}</td>
										<td  ng-show="!cols.contains('total_amount')" class="right">{{c.total_amount |number:2}}</td>
										<td  ng-show="!cols.contains('costamount')" class="right">{{c.costamount |number:2}}</td>
										<td  ng-show="!cols.contains('costamountsum')" class="right">{{c.costamountsum |number:2}}</td>
										<td  ng-show="!cols.contains('decpartownerprofit')" class="right">{{c.decpartownerprofit |number:2}}</td>
										<td  ng-show="!cols.contains('decparttotalprofit')" class="right">{{c.decparttotalprofit |number:2}}</td>
										<td  ng-show="!cols.contains('sopartownerprofit')" class="right">{{c.sopartownerprofit |number:2}}</td>
										<td  ng-show="!cols.contains('soparttotalprofit')" class="right">{{c.soparttotalprofit |number:2}}</td>
										<td  ng-show="!cols.contains('solddecownerprofit')" class="right">{{c.solddecownerprofit |number:2}}</td>
										<td  ng-show="!cols.contains('solddectotalprofit')" class="right">{{c.solddectotalprofit |number:2}}</td>
										<td  ng-show="!cols.contains('totalprofit')" class="right">{{c.totalprofit |number:2}}</td>
										<td  ng-show="!cols.contains('decpartownerprofitper')" class="right">{{c.decpartownerprofitper |number:2}}</td>
										<td  ng-show="!cols.contains('decparttotalprofitper')" class="right">{{c.decparttotalprofitper |number:2}}</td>
										<td  ng-show="!cols.contains('sopartownerprofitper')" class="right">{{c.sopartownerprofitper |number:2}}</td>
										<td  ng-show="!cols.contains('soparttotalprofitper')" class="right">{{c.soparttotalprofitper |number:2}}</td>
										<td  ng-show="!cols.contains('solddecownerprofitper')" class="right">{{c.solddecownerprofitper |number:2}}</td>
										<td  ng-show="!cols.contains('solddectotalprofitper')" class="right">{{c.solddectotalprofitper |number:2}}</td>
										<td  ng-show="!cols.contains('totalprofitper')" class="right">{{c.totalprofitper |number:2}}</td>
									</tr>
									<tr class="tbody_last_tr" ng-if="pagination.totalItems > 0">
										<td ng-show="!cols.contains('index')" class=""></td>
										<td ng-show="!cols.contains('option')" column="option"></td>
										<td ng-show="!cols.contains('entity_code')" column="entity_code"></td>
										<td ng-show="!cols.contains('entity_name')" column="entity_name"></td>
										<td ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name"></td>
										<td ng-show="!cols.contains('entity_group_name')" column="entity_group_name"></td>
										<td ng-show="!cols.contains('decoration_no_str')" column="decoration_no_str"></td>
										<td ng-show="!cols.contains('dec_type_desc')" column="dec_type_desc"></td>
										<td ng-show="!cols.contains('so_status_desc')" column="so_status_desc"></td>
										<td ng-show="!cols.contains('license')" column="license"></td>
										<td ng-show="!cols.contains('vin')" column="vin"></td>
										<td ng-show="!cols.contains('series_name')" column="series_name"></td>
										<td ng-show="!cols.contains('customer_no')" column="customer_no"></td>
										<td ng-show="!cols.contains('customer_name')" column="customer_name"></td>
										<td ng-show="!cols.contains('sheet_create_date_str')" column="sheet_create_date_str"></td>
										<td ng-show="!cols.contains('sheet_create_by_name')" column="sheet_create_by_name"></td>
										<td ng-show="!cols.contains('owned_by_name')" column="owned_by_name"></td>
										<td ng-show="!cols.contains('auditedbyname')" column="auditedbyname"></td>
										<td ng-show="!cols.contains('close_by_name')" column="close_by_name"></td>
										<td ng-show="!cols.contains('close_time_str')" column="close_time_str"></td>
										<td ng-show="!cols.contains('completed_date_str')" column="completed_date_str"></td>
										<td ng-show="!cols.contains('square_date')" column="square_date"></td>
										<td  ng-show="!cols.contains('owner_dec_amount')" class="right">{{sumData.sum_owner_dec_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('total_dec_amount')" class="right">{{sumData.sum_total_dec_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('sold_owner_dec_amount')" class="right">{{sumData.sum_sold_owner_dec_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('sold_total_dec_amount')" class="right">{{sumData.sum_sold_total_dec_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('declabouramount')" class="right">{{sumData.sum_declabouramount.value |number:2}}</td>
										<td  ng-show="!cols.contains('decownerlabouramount')" class="right">{{sumData.sum_decownerlabouramount.value |number:2}}</td>
										<td  ng-show="!cols.contains('dectotallabouramount')" class="right">{{sumData.sum_dectotallabouramount.value |number:2}}</td>
										<td  ng-show="!cols.contains('part_owner_dec_amount')" class="right">{{sumData.sum_part_owner_dec_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('part_total_dec_amount')" class="right">{{sumData.sum_part_total_dec_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('decpartcostamount')" class="right">{{sumData.sum_decpartcostamount.value |number:2}}</td>
										<td  ng-show="!cols.contains('decpartcostamountsum')" class="right">{{sumData.sum_decpartcostamountsum.value |number:2}}</td>
										<td  ng-show="!cols.contains('part_owner_part_amount')" class="right">{{sumData.sum_part_owner_part_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('part_total_part_amount')" class="right">{{sumData.sum_part_total_part_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('sopartcostamount')" class="right">{{sumData.sum_sopartcostamount.value |number:2}}</td>
										<td  ng-show="!cols.contains('sopartcostamountsum')" class="right">{{sumData.sum_sopartcostamountsum.value |number:2}}</td>
										<td  ng-show="!cols.contains('receiveable_amount')" class="right">{{sumData.sum_receiveable_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('realreceiveamount1')" class="right">{{sumData.sum_realreceiveamount1.value |number:2}}</td>
										<td  ng-show="!cols.contains('realreceivenotaxamount')" class="right">{{sumData.sum_realreceivenotaxamount.value |number:2}}</td>
										<td  ng-show="!cols.contains('derated_amount')" class="right">{{sumData.sum_derated_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('total_amount')" class="right">{{sumData.sum_total_amount.value |number:2}}</td>
										<td  ng-show="!cols.contains('costamount')" class="right">{{sumData.sum_costamount.value |number:2}}</td>
										<td  ng-show="!cols.contains('costamountsum')" class="right">{{sumData.sum_costamountsum.value |number:2}}</td>
										<td  ng-show="!cols.contains('decpartownerprofit')" class="right">{{sumData.sum_decpartownerprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('decparttotalprofit')" class="right">{{sumData.sum_decparttotalprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('sopartownerprofit')" class="right">{{sumData.sum_sopartownerprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('soparttotalprofit')" class="right">{{sumData.sum_soparttotalprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('solddecownerprofit')" class="right">{{sumData.sum_solddecownerprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('solddectotalprofit')" class="right">{{sumData.sum_solddectotalprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('totalprofit')" class="right">{{sumData.sum_totalprofit.value |number:2}}</td>
										<td  ng-show="!cols.contains('decpartownerprofitper')" class="right"></td>
										<td  ng-show="!cols.contains('decparttotalprofitper')" class="right"></td>
										<td  ng-show="!cols.contains('sopartownerprofitper')" class="right"></td>
										<td  ng-show="!cols.contains('soparttotalprofitper')" class="right"></td>
										<td  ng-show="!cols.contains('solddecownerprofitper')" class="right"></td>
										<td  ng-show="!cols.contains('solddectotalprofitper')" class="right"></td>
										<td  ng-show="!cols.contains('totalprofitper')" class="right"></td>
									</tr>
								</tbody>
							</table>
							<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>
						</div>
						<tm-pagination conf="pagination"></tm-pagination>
					</div>
				</section>
				<!--表格显示区域-->

			</div>
		</div>
	</div>
	
<style>
#myModal_detail .modal-dialog{ width:90%; min-height:300px;}
#myModal_detail .modal-body{padding:5px 10px; overflow-y:auto; margin: 0;}
</style>
<script>
$("#myModal_detail").on('show.bs.modal', function (e) {
	var height_val=$(window).height()*0.7;
 	$("#myModal_detail .modal-dialog .modal-body ").css("height",height_val+"px");
});
</script>
<!-- Modal -->
<div class="modal fade" id="myModal_detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">装潢单明细</h4>
            </div>
            <div class="modal-body row">
            
				<div ng-include="'/pages/decoration/detail.html'"></div>

            </div>
        </div>
    </div>
</div>
<!-- modal -->
	 
</div>

<form id="export_form" action="decoration/export"  method="post">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="search_opt" id="search_opt" /> 
	<input type="hidden" name="file_name" id="file_name" value="装潢单统计报表"/>
</form>